package com.blackcat.metaannotation.retention;

import java.lang.annotation.Annotation;

/**
 * <p> 描述 : 测试
 * @author : blackcat
 * @date  : 2020/8/6 16:14
*/
@Country(
		name = "China",
		languages = {"Chinese"}
)
@Region(
		name = "GuangDong",
		country = "China"
)
@Home(
		members = {"Wolffy","Wolnie","Wilie"},
		address = "Qingqing grasslands"
)
public class TestAnnotation {
	public static void main(String[] args) {
		Annotation[] annotations = TestAnnotation.class.getAnnotations();
		System.out.println("获取能保留到运行时的注解：");
		for (Annotation annotation :annotations){
			System.out.println(annotation.toString());
		}
		/*
		print:
			获取能保留到运行时的注解：
			@com.blackcat.metaannotation.retention.Country(name=China, languages=[Chinese])
		*/
	}
}
